package com.qj.yantaishan.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.beans.factory.annotation.Autowired;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;
import com.qj.yantaishan.mapper.StorePhysicalUserMapper;
import com.qj.yantaishan.domain.StorePhysicalUser;
import com.qj.yantaishan.service.IStorePhysicalUserService;
import com.qj.yantaishan.common.core.text.Convert;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author qihe
 * @date 2022-07-22
 */
@Service
@Primary
public class StorePhysicalUserServiceImpl    extends ServiceImpl<StorePhysicalUserMapper, StorePhysicalUser>  implements IStorePhysicalUserService
{
    @Autowired
    private StorePhysicalUserMapper storePhysicalUserMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public StorePhysicalUser selectStorePhysicalUserById(Long id)
    {
        return storePhysicalUserMapper.selectStorePhysicalUserById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param storePhysicalUser 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<StorePhysicalUser> selectStorePhysicalUserList(StorePhysicalUser storePhysicalUser)
    {
        return storePhysicalUserMapper.selectStorePhysicalUserList(storePhysicalUser);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param storePhysicalUser 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertStorePhysicalUser(StorePhysicalUser storePhysicalUser)
    {
        return storePhysicalUserMapper.insertStorePhysicalUser(storePhysicalUser);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param storePhysicalUser 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateStorePhysicalUser(StorePhysicalUser storePhysicalUser)
    {
        return storePhysicalUserMapper.updateStorePhysicalUser(storePhysicalUser);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteStorePhysicalUserByIds(String ids)
    {
        return storePhysicalUserMapper.deleteStorePhysicalUserByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteStorePhysicalUserById(Long id)
    {
        return storePhysicalUserMapper.deleteStorePhysicalUserById(id);
    }
}
